const less = require('less');
const { join } = require('path');
const { readFileSync } = require('fs');
const lessFileStr = readFileSync(join(__dirname, '../../', "src/styles/index.less"), "utf8");

less.render(lessFileStr, {
  env: 'development'
}, (error, result) => {
  if (error) {
    throw new Error(error);
  }
  console.log('result >>', result);
});
